/*
 * @Author: your name
 * @Date: 2021-05-08 09:43:27
 * @LastEditTime: 2021-05-08 09:49:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \after-end\app\extends\crypto.js
 */
const crypto = require('crypto');

const secret_key = 'hongyezhaofang_1807.wuzu';

function md5(password) {
    return crypto.createHash('md5').update(password).digest('hex');
}

function getPassword(password) {
    return md5(`password=${password}&secret_key=${secret_key}`);
}

exports.getPassword = getPassword;